#!/bin/sh

#Speed boot
#
#Authors:
#  Bruno Goncalves Araujo <www.biglinux.com.br>
#
#License: GPLv2 or later
#################################################

mv -f /etc/rc2.d/S12dbus /etc/rc2.d/S02dbus 2> /dev/null
mv -f /etc/rc2.d/S24hal /etc/rc2.d/S03hal 2> /dev/null
mv -f /etc/rc2.d/S30kdm /etc/rc2.d/S04kdm 2> /dev/null
mv -f /etc/rc2.d/S30gdm /etc/rc2.d/S04gdm 2> /dev/null
mv -f /etc/rc2.d/S50NetworkManager /etc/rc2.d/S05NetworkManager 2> /dev/null
mv -f /etc/rc2.d/S20winbind /etc/rc2.d/S90winbind 2> /dev/null
rm -f /etc/rcS.d/S01readahead
rm -f /etc/rcS.d/S39readahead-desktop
ln -sf /etc/init.d/bigahead /etc/rcS.d/S02bigahead 2> /dev/null
ln -sf /etc/init.d/bigahead-desktop /etc/rcS.d/S39bigahead-desktop 2> /dev/null

rm -f /etc/rc6.d/K20winbind
rm -f /etc/rc6.d/K25hwclock.sh
rm -f /etc/rc6.d/K50alsa-utils
rm -f /etc/rc6.d/K99laptop-mode
rm -f /etc/rc6.d/S01linux-restricted-modules-common

rm -f /etc/rc0.d/K20winbind
rm -f /etc/rc0.d/K25hwclock.sh
rm -f /etc/rc0.d/K50alsa-utils
rm -f /etc/rc0.d/K99laptop-mode
rm -f /etc/rc0.d/S01linux-restricted-modules-common

sed -i 's/CONCURRENCY=none/CONCURRENCY=shell/g' /etc/init.d/rc